-- GENERATED SPELL FOR [Stormforged Decimator] --


function spell0_30063(pUnit, Event) --@Storm Punch,n/a--
pUnit:FullCastSpellOnTarget(56352,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30063', 12000, 1)
end

function spell1_30063(pUnit, Event) --@War Stomp,n/a--
pUnit:FullCastSpellOnTarget(35238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30063', 630, 1)
end

function Sorts_30063(pUnit, Event)
local choix_sorts_30063 = math.random(0, 1)
if choix_sorts_30063 == 0 then
pUnit:RegisterEvent('spell0_30063', 1, 1)
end
if choix_sorts_30063 == 1 then
pUnit:RegisterEvent('spell1_30063', 1, 1)
end
end

function mob30063_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30063', math.random(1500, 3000), 1)
end

function mob30063_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30063_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30063_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30063, 1, 'mob30063_Action')
RegisterUnitEvent(30063, 2, 'mob30063_Leave')
RegisterUnitEvent(30063, 3, 'mob30063_Kill')
RegisterUnitEvent(30063, 4, 'mob30063_Die')
